<?php
/**
 * The Template for displaying all single posts.
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */

get_header(); ?>

	<?php // Blank Template For Backend Guide Posts
		if (in_category(array(923, 924, 925, 926, 927, 928, 936))) { ?>
        
        	<style>
				#headerTopBar, #header, #site-navigation, #websitebanner, #breadcrumb, #footer, .yarpp-related, #wpadminbar { visibility:hidden;height:0px;padding:0px;margin:0px; }
				p { font-size:14px;font-weight:normal;line-height:16px;margin-bottom:10px; }
            </style>
        	<div style="padding:10px;background:#ffffff;">
            	<h2><?php the_title(); ?></h2>
                <?php the_content(); ?>
            </div>
        
	<?php } else { ?>

	<?php if($is_iphone) { ?>
    		<style>
				#main { width:1040px;float:left;margin:0px; }
			</style>
    		<table width="100%" cellpadding="0" cellspacing="0" border="0">
            	<tr>
                	<td>
                    	<?php get_sidebar(); ?>
                    </td>
                    <td>
    <div id="primary" class="site-content">
		<div id="content" role="main">

			<?php while ( have_posts() ) : the_post(); ?>

				<?php get_template_part( 'content', get_post_format() ); ?>

			<?php endwhile; // end of the loop. ?>

		</div><!-- #content -->
	</div><!-- #primary -->
    
    			</td>
            </tr>
            
        </table>

<?php } else { ?>
    
    <?php get_sidebar(); ?>
    
    <div id="primary" class="site-content">
		<div id="content" role="main">

			<?php while ( have_posts() ) : the_post(); ?>

				<?php get_template_part( 'content', get_post_format() ); ?>

			<?php endwhile; // end of the loop. ?>

		</div><!-- #content -->
	</div><!-- #primary -->


<?php } ?>

<?php } ?>

<?php get_footer(); ?>